<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    const obj = {
        a:1,
        b:2,
        c:3,
        fnn(){
            console.log(123);
        }
    }
    const {a,b,c,d = 555,fnn} = obj
    // a:yi  等于 yi = a;  a = obj.a
    //如果新名字与对象中名一样可以简写 {a:a,b:b,c:c} == {a,b,c}
    console.log(a,b,c,d,fnn,toString);

    // const arr = [1,2,3,4]
    // const [a,b,c,d] = arr;
    // console.log(a,b,c,d);
    

</script>